#!/usr/bin/env python

def safe(func):
    def wrapper(*args, **kwds):
        try:
            return func(*args, **kwds)
        except:
            import traceback

            traceback.print_exc()

    return wrapper